package de.koller.hydrogen.engine.player;

import de.koller.hydrogen.HRoot;
import de.koller.hydrogen.engine.physics.HMovingObject;

public class Player {
	
	public final HMovingObject mo = new HMovingObject();
	public final PlayerRender render = new PlayerRender( this );
	public int color = 0xffffffff;
	
	public Player() {
		color = 0xff0000ff;
		mo.size.size.set( 6, 6, 6 );
	}
	
	public void add( HRoot root ) {
		root.engine.players.add( this );
	}
	
	public void remove( HRoot root ) {
		root.engine.players.remove( this );
	}
	
}
